function myOpen(obj) {
    $(obj).siblings().show();
    $(obj).parent().siblings().children("div:nth-child(2)").hide();
}

function toHref(url) {
    $(".right").load("back/" + url);
}

function exitUser() {
    $.ajax({
        url: '/exitUser',
        data: {},
        type: 'get',
        dataType: 'json',
        success: function (data) {
            console.log(data);
            if (data.result == "success") {
                location.href = "/html/login.html";
            }

        }
    })
}